package com.example.project.service;

import com.example.project.model.Sale;
import org.springframework.data.domain.Page;

import java.util.List;

public interface SaleService {
    //获取所有销售数据
    List<Sale> getAllSale();

    //保存销售数据 | 更新
    void saveSale(Sale sale);

    //获取指定销售数据的id
    Sale getSaleId(long id);

    //删除指定ID的销售数据
    void deleteSaleById(long id);

    //分页
    Page<Sale> findPaginated(int pageNo, int pageSize, String sortField, String sortDirection);

}
